namespace CategoryExample.Core
{
    using System.Collections.Generic;

    public class Category
    {
        public Category()
        {
        }

        public Category(string name)
        {
            Name = name;
        }

        public Category(string name, Category parent)
        {
            Name = name;
            Parent = parent;
        }

        public virtual int Id { get; set; }

        public virtual string Name { get; set; }

        public virtual Category Parent { get; set; }

        public virtual IList<Category> Childs { get; set; }
    }
}